import { getAction, postAction } from '@/api/manage'

// 模板参数配置列表
const list = (params) => getAction('/admin/templateParamConfig/page', params)
// 删除模板参数配置
const del = (params) => postAction(`/admin/templateParamConfig/delete/${params}`)
// 批量删除模板参数配置
const batchDel = (params) => postAction(`/admin/templateParamConfig/batchDel`, params)
// 新增模板参数配置
const create = (params) => postAction('/admin/templateParamConfig/create', params)
// 编辑模板参数配置
const edit = (params) => postAction('/admin/templateParamConfig/update', params)

export {
  list,
  del,
  batchDel,
  create,
  edit
}
